#include "App_message.h"
#include "log/log.h"

int main(int argc, char const *argv[])
{
    char *json = "{\"conn_type\":1,\"id\":\"5858\",\"msg\":\"61626364\"}";
    char array_buff[100];
    int len = App_Message_JsonToCharArray(json, array_buff, sizeof(array_buff));
    log_debug("字符数组：%.*s, 长度：%d", len, array_buff, len);

    char *json2 = App_Message_CharArrayToJson(array_buff, len);
    log_debug("json: %s", json2);

    return 0;
}
